小编Xav*_*rey的帖子

有没有办法在Qt中触发另一个信号的信号?

我已经有一个应用程序,现在正在调整它.在这方面,我正在引入一个新信号,当发出另一个信号时必须发出该信号.这可能在Qt?

写一个插槽只是为了发出这个信号感觉如此原始和蹩脚......

详细说明,我必须将按钮signalClicked()连接到我自己的信号说sendSignal(enumtype)......

编辑:忘记提到我需要用第二个信号发送数据.

qt signals-slots

5
推荐指数
1
解决办法
2578
查看次数

Qt可用于开发Windows IoT核心应用程序吗?

我在Qt和C++环境中工作了一段时间,并希望学习Windows IoT核心及其功能.有没有办法做到这一点?

qt iot windows-10 windows-10-iot-core

5
推荐指数
1
解决办法
3048
查看次数

标头在UITableView控制器中不可见

在我的表视图中,我正在设置标题标题.但它不可见,我必须向下拖动视图才能看到,当我发布它时,它会被隐藏,只有行可见.我希望标题默认可见.

这是我使用的表格视图委托:

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    // Return the number of sections.
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    // Return the number of rows in the section.
    return [arrayUseCases count];
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 60; //row height
}

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {

    return @"General Cases";
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"UseCasesCell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
    UIView *bgColorView = [[UIView alloc] init];
    // Configure …
Run Code Online (Sandbox Code Playgroud)

uitableview ios

4
推荐指数
2
解决办法
9452
查看次数

QFrame 的样式表影响 QLabel

QFrame只是使用彩色边框,因为我找不到更改颜色的方法QDialog。那么因为篡改了 QFrame边框,也在影响着QLabel外观,有什么办法可以避免这种情况呢?

编辑: 这是我正在使用的样式表,其中QLabels' 没有任何效果。它正在采取QFrames'

QWidget {
    background-color: black;
}
QLabel {
    color:white;
    border: solid 2px black;
    font: bold 19px Sans Serif;
}
QFrame {
    border: solid 2px white;
    border-radius: 4px;
}
Run Code Online (Sandbox Code Playgroud)

qt stylesheet qlabel qtstylesheets qframe

3
推荐指数
1
解决办法
3654
查看次数

如何旋转/更改 ApplicationWindow QML 的方向?

我想默认将我的应用程序设置为 180 度方向。在 ApplicationWindow 级别旋转屏幕的 API 是什么?我的应用程序中有工具栏和状态栏,因此我需要旋转 ApplicationWindow 本身。

qt orientation applicationwindow qml

2
推荐指数
1
解决办法
4932
查看次数

Qt 如何终止使用 startTimer() API 启动的计时器?

完成后,我更新倒计时计时器,timerEvent(QTimerEvent *e)我调用了 ,killTimer(timerID)timerEvent()仍在调用中。那么杀死它的正确方法是什么?

编码:

void MainWindow::timerEvent(QTimerEvent *e)
{
    Q_UNUSED(e);

    static uint16_t u16RemTime = MAX_WARMUP_TIME_IN_SECS;
     if((true == isWarmUpStarted) && (u16RemTime > 0))
     {

         u16RemTime--;
         objptrSplashScreen->SetTime(u16RemTime);
     }
     else
     {
         //Still running
         qWarning("\n\n\n\n\n WARM UP TIMER RUNNING \n\n\n\n\n");
         killTimer(warmUpTimerID);
     }
}
Run Code Online (Sandbox Code Playgroud)

如果有帮助。我有两个这样的计时器在同一个 GUI 线程中的两个不同类中运行。我将如何去杀死它?

c++ qt timer qtimer

1
推荐指数
1
解决办法
3406
查看次数