Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.4k Posts
  • 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().
  • Put a png image as cells backgrounds in a QCalendarWidget

    Solved qcalendarwidget
    9
    0 Votes
    9 Posts
    4k Views
    M
    Now it is working here, I connect the buttons action to the calendar using: currentDate.setFullYear(aNewYear, aNewMonth, aNewDay); calendar.selectedDate = new Date(aNewYear, aNewMonth, aNewDay); calendar.update(); Now I have a calendar and a custom navigation bar thanks for all!
  • QSslSocket handshake fails for TlsV1_2

    Unsolved
    7
    0 Votes
    7 Posts
    3k Views
    SGaistS
    After a quick look at Qt's sources, the numbering after QSsl::TlsV1_0 depends on a define so it might be related.
  • How to set QToolBar color without losing the blue QToolButton hover effect

    Solved
    5
    0 Votes
    5 Posts
    4k Views
    mrjjM
    @Megamouse Super :) And to the typename, you can also add instance name (object name) QPushButton#evilButton { background-color: red } Type QPushButton but only named evilButton http://doc.qt.io/qt-5/stylesheet-examples.html You can apply stylesheet to QApplication. That is the highest parent you can get and it will affect most.
  • Qt won't start via remote-desktop

    Unsolved
    3
    0 Votes
    3 Posts
    6k Views
    mrjjM
    Hi Try starting Creator with qtcreator -noload Welcome -noload QmlDesigner -noload QmlProfiler Unless you ofcourse need QML :) On windows RDP do not support openGl higher than 1.1 but often a work around it simply to start App first then remote connection. Which in your case is not really possible ? http://support.esri.com/en/technical-article/000012119
  • When is the signal QDrag::targetChanged emitted?

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    mrjjM
    @dcortesi cool. thx for sharing.
  • QtRemoteObject

    Unsolved qtremoteobject design
    1
    0 Votes
    1 Posts
    745 Views
    No one has replied
  • Rotation animation about point other than origin with QTWidget App.

    Unsolved
    2
    0 Votes
    2 Posts
    490 Views
    sierdzioS
    You can use QTransform to rotate your item. To get "global" coordinates, use mapTo*() methods.
  • QSqlDatabase: QSQLITE driver not loaded [SOLVED]

    17
    0 Votes
    17 Posts
    24k Views
    SGaistS
    Then why are you using the instructions for static plugins ? The SQLite plugin is not statically built.
  • Signing an XML file with KEY and CRT file

    Unsolved
    2
    0 Votes
    2 Posts
    882 Views
    SGaistS
    Hi, Do you mean to run your command line from Qt (i.e. QProcess) or to use the OpenSSL API through Qt ?
  • Problems with QMediaPlayer video frames

    Unsolved
    2
    0 Votes
    2 Posts
    894 Views
    SGaistS
    Hi, The management of the format and type of the texture depends on the platform multimedia backend. What OS are you running ? With which version of Qt ?
  • lrelease can't find files

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    Can you update to the latest version ? It's currently 5.9.1.
  • Find RegExp's and change thier string format

    Unsolved
    2
    0 Votes
    2 Posts
    622 Views
    T
    Use you Qt5 if you can and this http://doc.qt.io/qt-5/qregularexpression.html#details Forgot to add this: use this to replace http://doc.qt.io/qt-5/qstring.html#replace-11
  • Make QWidget fit into a QTableView Cell

    Solved
    2
    0 Votes
    2 Posts
    563 Views
    F
    The Third Argument of render is a QRegion. With it i was able to fix the Size and the Offset.
  • Source code view widget

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    V
    Update: we've deployed it in https://www.mudlet.org/2017/07/mudlet-3-3-1-new-code-editor-new-irc-and-utf8-in-lua-support/. Pretty lightweight, has themes and multi-caret editing - if you're in the market for a new editor I recommend it.