Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.3k Posts
  • Compiling and Running a Bare Application with valgrind

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    jsulmJ
    @mstoth I think this is normal: you often get complains from Valgrind about issues in system libraries or Qt in this case. You can just ignore them. See http://doc.qt.io/qtcreator/creator-analyzer.html#suppressing-errors
  • Open multiple QSslSockets

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    T
    Thanks @VRonin.
  • Support_QT_Homework_PictureViewer

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    C
    Hello, my version was Qt 5.0.2 (32 bit) and I added the CONFIG +=c++11 in the project file, Thank you very much it worked properly. Best Regards,
  • Blend / Mix Videos

    Unsolved
    2
    0 Votes
    2 Posts
    498 Views
    mrjjM
    Hi libVLC is always interesting. https://github.com/vlc-qt/vlc-qt It has filter for blending but not sure if fits your needs.
  • QComboBox cannot show the icon

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    mrjjM
    @king558 Oh so it did not recompile it by itself :) Sometimes one must run qmake manually.
  • TextEdit space size 1/2 of the letters

    Solved
    3
    0 Votes
    3 Posts
    745 Views
    M
    @jsulm Thanks! It is fixed!
  • Why does the qlabel background in qlistwidget not display?

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    VRoninV
    Instead of using a QLabel in a QListWidgetItem just call item ->setData(Qt::BackgroundRole,QBrush(QColor(Qt::blue));
  • Qt Static Compile - MacOS Deployment Target

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    You can find the list here. As I wrote before, your application might run on older version of macOS, but you'll have to try first.
  • Cannot install postgreSQL driver

    Unsolved
    12
    0 Votes
    12 Posts
    11k Views
    S
    @paladinmain No. This is wrong folder. Look one level up -> (for example) chess-game-Release\release Or look from Qt Creator: Projects -> Build Settings -> Build directory
  • Application Icon not shown in Mac OS X Dock

    7
    0 Votes
    7 Posts
    7k Views
    M
    Try the following: In your pro file: macx{ QMAKE_INFO_PLIST = Mac/Info.plist ICON = Mac/AppIcon.icns } In my case, the info.plist and icon files are in a folder called 'Mac' inside my project folder. In the info.plist file, you must have: <key>CFBundleIconFile</key> <string>AppIcon</string>
  • QtRO exposing QList<CustomType> as a property.

    Solved qtremoteobject
    2
    0 Votes
    2 Posts
    980 Views
    B
    OK, I finally figure it out, It was dumb, I had to wait till the replica get sync with the source, and this by handling the QRemoteObjectReplica stateChanged event. and it's all OK now.
  • How to use crypto plugin?

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    crasher332C
    Thank you! I'll try it.
  • How to limit upload speed?

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    T
    Sorry, I forgot to post the link: https://bugreports.qt.io/browse/QTBUG-61787
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Fast painting from QPixmap into QWidget

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • HighDPI and Qt Designer

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    sierdzioS
    Nice :-) Happy coding!
  • 0 Votes
    5 Posts
    3k Views
    F
    @hskoglund Thank you! Yes, the problom is “\” , I create a key like "aaa/bbb/ccc", QSettings can work well on it. Thanks a lot.
  • QWidget and QTextEdit in QAbstractTableModel

    Solved
    19
    0 Votes
    19 Posts
    6k Views
    F
    I solved that Problem. Sorry i forgot to mark the Thread. The Problem was the Index yes. In my data() Method of my TableModel i returned my Object wrong. So the Pointer was always null.
  • Display multiline cells in QTableView with QSqlTableModel

    Unsolved
    6
    0 Votes
    6 Posts
    5k Views
    raven-worxR
    @KevinR said in Display multiline cells in QTableView with QSqlTableModel: Try this: void QStyledCustomDelegate::initTextDocument(const QModelIndex & index) { document->setHtml( index.data(Qt::DisplayRole).toString() ); document->setTextWidth( QWIDGETSIZE_MAX ); document->setTextWidth( document->idealWidth() ); } QSize QStyledCustomDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const { this->initTextDocument(index); return document->size().toSize(); } void QStyledCustomDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { if( index.column() == XXX ) { this->initTextDocument(index); painter->save(); painter->translate( option.rect.topLeft() ); document->drawContents(painter); } else QStyledItemDelegate::paint(painter,option,index); } Note: the paint method is still lacking of the selection background.
  • Dynamic Creating forms

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    jsulmJ
    @Dan3460 Well, you can create as many windows/widgets as you like at runtime. How exactly to do this depends on how you want to present the information to the user. Do you really want to use MDI? This concept as actually outdated. If you want to show same type of information then you can simply create a custom widget for it and then create as may instances of it as needed. Then put each instance in a layout and call show().