Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.4k Posts
  • Can we mark a text in QTextEdit as hyperlink

    Unsolved
    5
    0 Votes
    5 Posts
    4k Views
    mrjjM
    @jsulm I think he dreams about something like QTextBrowser::anchorClicked() One way that might work is mouse events ( for Pos) and QTextEdit::anchorAt() http://doc.qt.io/qt-5/qtextedit.html#anchorAt But im only guessing :)
  • How to show QListView..?

    Unsolved
    10
    0 Votes
    10 Posts
    4k Views
    VRoninV
    Edited the code above, now it should spawn a window containing the image for each file, could you check if the windows work correctly?
  • CSS

    Solved
    3
    0 Votes
    3 Posts
    881 Views
    Y
    Thank's for your answer Qt support all selector CSS2, some properties of CSS3, and she has these own properties
  • How to set the color of the selected QTreeWidgetItem?

    Unsolved
    13
    0 Votes
    13 Posts
    14k Views
    J.HilkJ
    @opengpu2 You can always disable the default focus of your listwidget widget->setFocusPolicy(Qt::NoFocus); And "create your own 'focusHanlder' " connect(widget, &QListWidget::clicked, [=](QModelIndex index){ //Do Custom Stuff with clicked item });
  • QT5.8 multimeadia module mediaplay failed

    Unsolved
    15
    0 Votes
    15 Posts
    3k Views
    jsulmJ
    @JiujiuTong You can easily check with: file libactivemq-cpp.so in a terminal. Default is actually 64bit on a 64bit system.
  • QSettings with QDateTime changes between 5..3.2 and 5.8

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    jsulmJ
    @Richard I would use http://doc.qt.io/qt-5/qdatetime.html#toString and specify format. This way you do not depend on how Qt is serializing QDateTime. And it is readable by humans :-)
  • passing model class

    Moved Unsolved
    3
    0 Votes
    3 Posts
    491 Views
    VRoninV
    why passing a double pointer instead of just the QStandardItemModel* ?
  • QTimeedit set color

    Unsolved
    4
    0 Votes
    4 Posts
    993 Views
    M
    @mrjj said in QTimeedit set color: Hi Small note. There is no reason to new the palette QPalette palette; ... yourtimeedit->setPalette(palette); Works just fine The setPalette makes copy. Also, with new you must then delete palette; to avoid to leak. Good point @mrjj , Delete palette was obvious for me , but you are right , QPalette palette; Already does the job, Thank you for your answer !
  • QGraphicsDropShadowEffect and QResizeEvent

    Solved qgraphicsdropsh qresizeevent qlabel shadow
    3
    0 Votes
    3 Posts
    2k Views
    J.HilkJ
    Ok, I'll mark this as solved. I wasn't able to do it with QGraphicsDropShadowEffect, and creating all images twice and including them in the rcs-file is simply a no go. Therefore I create a function, that draws a shadow - all 4 sides - around the the QImages, either at startup or during runtime. Here it is, in case anyone else needs something like it. QImage drawShadow(QImage img) { //Condition img allready has a transparent border 4 Pixel in this case //Create new Img with same Size QImage imgBGround(img.size(), img.format()); //Fill it with transparency QPainter p(&imgBGround); QPen pen; pen.setStyle(Qt::NoPen); p.setPen(pen); p.setRenderHint(QPainter::Antialiasing); p.fillRect(QRect(0,0,img.width(), img.height()), QColor(255,255,255,0)); //Draw Rounded Rectangle as Shadow QPainterPath path; path.addRoundedRect(QRect(0,0,img.width(), img.height()),15,15); p.fillPath(path,QColor(110,152,226)); p.drawPath(path); //Draw Original Img over background p.drawImage(0,0,img); return imgBGround; }
  • QToolTip StyleSheet with padding produces additional padding

    Solved
    6
    1 Votes
    6 Posts
    4k Views
    S
    Hi, I have committed a new bug report. https://bugreports.qt.io/browse/QTBUG-59119 regards Oliver
  • How can i use QFtp on Qt5.5

    Solved
    11
    0 Votes
    11 Posts
    3k Views
    V
    @jsulm I had solve the problem from your step. I think the reason why i will get the error is because the path of the compiler i didn't set well. Thanks for your help! Appreciate!
  • How to create a QTextEdit with Bold & Italic buttons

    Solved
    3
    0 Votes
    3 Posts
    664 Views
    jsulmJ
    @ARASHz4 Why should QTextEdit provide buttons? You already have QPushButton/QToolButton.
  • QMenubar

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    jsulmJ
    @Stelian Many questions: Why do you implement MenuBar? Why does your MenuBar contain QMainWindow (menu bar is part of a window not other way around)? Why does your MenuBar (which is already a QMenuBar) contain a QMenuBar? You are doing a lot of things wrongly. Please read this: http://doc.qt.io/qt-5/qtwidgets-mainwindows-menus-example.html
  • Is it possible a derived class object can emit a signal base class

    Unsolved
    2
    0 Votes
    2 Posts
    3k Views
    jsulmJ
    @Qt-Enthusiast Sure it is possible, but B needs Q_OBJECT.
  • compiling err

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    RatzzR
    @sovereignc said in compiling err: now it is giving: QApplication: invalid style override passed, ignoring it. May be this link can help you https://forum.qt.io/topic/75398/qt-5-8-0-qapplication-invalid-style-override-passed-ignoring-it
  • How can i get ftp files show on my list widget using QNetworkAccessManager Qt 5.8?

    Solved
    41
    0 Votes
    41 Posts
    17k Views
    D
    @victor-wang Build procedure: cd QtFtp <QTDIR>/bin/syncqt.pl -version 5.5.0 qmake make make install
  • postgresql backup and restore

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    PabloArgP
    Hi jsulm, I tried as you said as well, but doesn´t work. Anyway according to QProcess is possible to use Native parameters where your parameters you can put as string and QT will recognize each parameters by spaces between them. I am usign for long time without problem. I will close this ticket because looks that this is a problem with psql. And the only solution is create a bat file, and run the bat in QProcess. Many thanks to everybody as I said before if you guys found better idea to do this let me know
  • Crypt32.dll Unresolved Symbol

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    SGaistS
    Hi, Which symbol is missing exactly ?
  • QSerialPort setting echo flags

    Solved qserialport
    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi, You can get the native handle with QSerialPort::handle and then modify its properties. Hope it helps
  • QSlider handle form

    Solved
    3
    0 Votes
    3 Posts
    797 Views
    SGaistS
    Hi, Out of curiosity, since Qt follows the platform style, is it only for personal taste that you want to get the old style back ?