Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 456.8k Posts
  • Examining on-screen widgets

    Solved
    5
    0 Votes
    5 Posts
    989 Views
    JonBJ
    @SGaist As usual from you, a very interesting link! I'm not sure it does the same sort of thing as I had mind (visualizing layouts & widgets [EDIT hang on, https://doc.qt.io/GammaRay/gammaray-widget-inspector.html might be closest to what I had in mind]), and I won't get code navigation because Python, but I must give it a look. When I have a minute --- it looks quite complex/impressive!
  • Trouble posting to a resful API

    Unsolved qmultipart qhttppart qnetworkrequest
    4
    0 Votes
    4 Posts
    881 Views
    dheerendraD
    Another thing I notice is that QNetworkAccessManager manager is created just before the post request. This indicates to me that you are not handling any signal like finished(..). So how to you know that response has come back ?
  • build Qt project in Mac Qt without errors,but nothing display!

    Unsolved
    8
    0 Votes
    8 Posts
    798 Views
    M
    Try the following: launch the Console app in the Utllity folder launch your app from the desktop (double clicking on it) look at any relevant messages in the Console relative to your app
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • The Desktop kit on Qt Creator is grayed out

    Solved
    31
    0 Votes
    31 Posts
    10k Views
    tomyT
    @mrjj i cross fingers , it just works for you :) Hi. Thanks so much. :) It works well now. :)
  • 0 Votes
    2 Posts
    378 Views
    jsulmJ
    @Limer This should help: https://stackoverflow.com/questions/4810516/c-redirecting-stdout
  • Error: version node not found for symbol qt_version_tag@Qt_5.5

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    M
    I tried 5.8.0 and it gave the same error !!
  • where should i place CustomWidgetPlugin.dll and CustomWidgetPlugin.lib?

    Solved
    9
    0 Votes
    9 Posts
    717 Views
    O
    solved. the lib and dll are used in the exe project. while the dll is used for the QDesigner, lib is useless for the QDesigner. thanks
  • MainWindow deleteLater() segmentation fault

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    A
    Yes, this is default project main.cpp, i failed to saw where double free occured. But now ok.
  • QTextEdit's dropEvent always append "file:///XXXXXXXXXXXX" to the end of QTextEdit

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    S
    @Christian-Ehrlicher Yes it's the reason. But when I do not call the QTextEdit::dropEvent(e), the text cursor is frozened after I drag the file into text area.
  • Need help of code to create a protoptype

    Unsolved
    4
    -1 Votes
    4 Posts
    398 Views
    Q
    Thanks I will take care
  • 0 Votes
    5 Posts
    2k Views
    dheerendraD
    Cool. You can move the issue to SOLVED state. Enjoy Qt programming.
  • how can we set a style sheet to one tableWidget item

    Unsolved
    2
    0 Votes
    2 Posts
    278 Views
    dheerendraD
    This is not possible. Styling can be applied to widgets & here item is not a widget. You can check with setData(...) function to customise item. If you want completely different cell, you need to write custom delegate & do paint on your own. It is long pole. What you wanted to change in cell ?
  • Problem with gbinary files, and QVector

    35
    0 Votes
    35 Posts
    6k Views
    jsulmJ
    @Loc888 Please close. If somebody has a problem/question he/she can open a new thread. Your problem is solved, right?
  • ld: symbol(s) not found for architecture x86_64 in Mac Qt

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    P
    @SGaist Thanks
  • How to create QListView item with different heights

    Unsolved
    1
    0 Votes
    1 Posts
    445 Views
    No one has replied
  • how to get gray background headers of qtableview

    Unsolved
    2
    0 Votes
    2 Posts
    869 Views
    Q
    #include "mainwindow.h" #include <QHeaderView> #include <QTableWidgetItem> #include <QLabel> #include <QPushButton> myWidget::myWidget(QWidget *parent) : QWidget(NULL) { hbox = new QHBoxLayout; QLabel* label = new QLabel; label->setText("Options"); label->setMaximumWidth(100); label->setMinimumHeight(20); hbox->addWidget(label); QPushButton* push = new QPushButton("+"); push->setMaximumWidth(30); push->setMinimumHeight(20); hbox->addWidget(push); setMinimumWidth(100); setLayout(hbox); } MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { QTableWidget * t = new QTableWidget; t->setColumnCount(5); t->setRowCount(3); QStringList headerLabels; QString col1 = "Label1"; QString col2 = "Label2"; QString col3 = "Label3"; QString col4 = " Label4"; QString col5 = " Label5"; t->setStyleSheet("QHeaderView::section { background-color:'light grey' }"); QColor color(QColor("light grey")); QTableWidgetItem* item = new QTableWidgetItem("23"); item->setData(Qt::BackgroundRole,color); QColor color1(QColor("light grey")); QTableWidgetItem* item1 = new QTableWidgetItem("9"); item1->setData(Qt::BackgroundRole,color1); QTableWidgetItem* item2 = new QTableWidgetItem("Set1"); item2->setData(Qt::BackgroundRole,color); QTableWidgetItem* item3 = new QTableWidgetItem("Set2"); item3->setData(Qt::BackgroundRole,color); t->setItem(0,0,item); t->setItem(1,0,item1); t->setItem(0,1,item2); t->setItem(1,1,item3); QComboBox* combox = new QComboBox; t->setCellWidget(0,2,combox); combox->addItem(QString(("T1"))); combox->addItem(QString(("T2"))); QComboBox* combox_1 = new QComboBox; t->setCellWidget(1,2,combox_1); combox_1->addItem(QString(("T1"))); combox_1->addItem(QString(("T2"))); QLineEdit * edit = new QLineEdit; edit->setText(" aaa: aaa "); t->setCellWidget(0,3,edit); QLineEdit * edit1 = new QLineEdit; edit1->setText(" bbb: bbb "); t->setCellWidget(1,3,edit1); myWidget* m = new myWidget; t->setCellWidget(0,4,m); myWidget* n = new myWidget; t->setCellWidget(1,4,n); headerLabels << col1 << col2 << col3 << col4 << col5; t->setHorizontalHeaderLabels(headerLabels); t->resizeColumnsToContents(); t->verticalHeader()->hide(); t->show(); } MainWindow::~MainWindow() { }
  • Run desktop program with administration privileges on Windows platform

    Unsolved
    3
    0 Votes
    3 Posts
    366 Views
    Chris KawaC
    Getting the right amount of escape characters for this in qmake is a bit tricky, so here's a code snippet you can copy/paste to your .pro file: QMAKE_LFLAGS_WINDOWS += /MANIFESTUAC:"level='requireAdministrator'" Don't forget to re-run qmake after that (Build->Run qmake).
  • Receiving JSON from GET request in google apis

    Unsolved
    6
    1 Votes
    6 Posts
    532 Views
    SGaistS
    Hi, You are trying to read the reply too early as well as deleting it too early. You should do both in the slot connected to the finished signal.
  • Serial port not working

    Unsolved
    3
    0 Votes
    3 Posts
    420 Views
    mrjjM
    Hi a PCIex serial card might need drivers. Some drivers for certain UART are included with some linux versions. Some card dont support linux at all, only Windows. So best option is to look up your concrete card and see what platforms that are supported. if it came with the DELL pc. Call them and ask if it works in linux.