Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.3k Posts
  • Qtableview

    5
    0 Votes
    5 Posts
    2k Views
    V
    thank you for your reply
  • [Solved]How to calculate the border-width of a widget in the paintEvent?

    2
    0 Votes
    2 Posts
    5k Views
    S
    After working on this for few hrs i figured out that QWidget does not provide any information about the border-width. So instead of using QWidget i use QFrame. My requirement was to paint in the available area excluding the border for a widget. This is achieved by using QFrame that provide "frameWidth()":http://doc.qt.nokia.com/4.7-snapshot/qframe.html#frameWidth-prop and "contentsRect()":http:// for the same purpose. Thanks.
  • Internet: what type of connection?

    4
    0 Votes
    4 Posts
    2k Views
    A
    Seems to me that this is what [[doc:QNetworkSession]] and [[doc:QNetworkConfiguration]] are meant for?
  • Disable highlighting in QDoubleSpinBox

    2
    0 Votes
    2 Posts
    2k Views
    T
    Hi, ~daveq! Welcome to Qt Developer Network! Now QDoubleSpinBox does not send any signals when you press Return - so you can't change it's focus state. But if you want to achieve it you can create you own widget (inherited from QDoubleSpinBox) and implement this behaviour there. Maybe there is better solution, but I've done it in this way.
  • [Solved]QLineEdit Rounded Corners?

    4
    0 Votes
    4 Posts
    11k Views
    W
    [quote author="tucnak" date="1342510765"]Learn about QSS (Qt Style Sheets) - it allows to add CSS styling to your Qt application. [/quote] Thats pretty cool. I will, still familiarizing myself with Qt. Liking it so far.
  • [Solved] QLineEdit visible width setting?

    4
    0 Votes
    4 Posts
    12k Views
    T
    setFixedWidth will set both min and maximum width, so doing setMaximumWidth before is redundant.
  • How to verify accounts (logins)?

    5
    0 Votes
    5 Posts
    2k Views
    D
    [quote author="abbas farahmand" date="1342495126"] use can use sqlite db with hash password.[/quote] With salted hashed password. http://en.wikipedia.org/wiki/Cryptographic_salt Further, don't use a fast hash function like MD5 or SHA. Use a scheme that you can make slower as computing power grows, without breaking your code. See for example http://en.wikipedia.org/wiki/Bcrypt If the authentication happens over the network, use a nonce (and SSL). http://en.wikipedia.org/wiki/Cryptographic_nonce If you think this is too much work, don't write the program. Don't implement your security/authentication layer as dilettantish as sony, last.fm, eHarmony, linkedin etc. did – You've read in the news what happens.
  • [solved]: Global parameter

    10
    0 Votes
    10 Posts
    3k Views
    W
    Do not mention it
  • QVTKWidget Error!! Please Help

    3
    0 Votes
    3 Posts
    4k Views
    M
    Hello folks, i don't if the problem is sovled right now but i have the same Problem using QVTKWidget with QT! I'm using QTCreator Version 4.8.0 an VTK version 5.8. So i created a small an simple Application under WIN7 x64 and put in the *.pro file the INCLUDEPATH of VTK (INCLUDEPATH += "C:\VTK5.8.0\include\vtk-5.8") and all LIBS of the vtk which are in the folder "C:\VTK5.8.0\lib". I build it successfully! After that i added a Widget in my application and promoted that to QVTKWidget. But now when i would like to build the hole program i get a error that i don't know what to do with that. This is it: _mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: __thiscall QVTKWidget::QVTKWidget(class QWidget *,class QFlags<enum Qt::WindowType>)" (??0QVTKWidget@@QAE@PAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z) referenced in function "public: void _thiscall Ui_MainWindow::setupUi(class QMainWindow *)" (?setupUi@Ui_MainWindow@@QAEXPAVQMainWindow@@@Z) Can anyone please help me with that error? Any suggestions will be great! Thx! Mario
  • Why this code is not compiled?

    7
    0 Votes
    7 Posts
    2k Views
    D
    Thanks mlong, I will do that and study the necessary. Thanks.
  • QPlaintTextEdit and setFont to selected Char

    10
    0 Votes
    10 Posts
    3k Views
    P
    ok thx for help
  • Setting up Bitbucket Repository on QtCreator

    3
    0 Votes
    3 Posts
    10k Views
    T
    A git repository is always local. You need to add remotes to pull/push to them. Alternatively you can do "File->New Project->Import->from git" (from memory, actual items might vary) to import a new project from git, which will basically show a wizard and then run git clone.
  • QProgressBar step sizes too large.

    5
    0 Votes
    5 Posts
    5k Views
    M
    bq. There is a high resolution timer with millisecond interval. Keep in mind that even though you can request a timeout level down to millisecond resolution with QTimer, there is no guarantee that the timer will be called with that resolution. The actual temporal resolution of the QTimer is limited by the underlying operating system and there are no guarantees of real-time operation.
  • QSignalMapper with int64

    1
    0 Votes
    1 Posts
    960 Views
    No one has replied
  • Understanding the different ways to instantiate the QMessageBox class

    10
    0 Votes
    10 Posts
    21k Views
    F
    Thank you all very much for the good information, this is really helping me a lot.
  • [SOLVED] Qt 4.7.3, ODBC driver, error when connecting to db

    15
    0 Votes
    15 Posts
    16k Views
    G
    [quote author="confused" date="1342446698"]So I would replace _db_path with "C:\Users..." pointing to the folder the .dbf is in? [/quote] Yes [quote author="confused" date="1342446698"] Also can you tell me how to create the .dbf? [/quote] You should execute a query "CREATE TABLE YOURFILE.DBF"
  • [Solved] Printable Object

    4
    0 Votes
    4 Posts
    3k Views
    T
    Hi Gerolf, Thank for your reply. Yes, MyClass != MyObject (I'm sorry, it was a typographic mistake). I have found the error (but I can't understand), your definition don't work for me: When we see this definition anything is wrong, it's a simple operator overload, but don't work when use & in QDebug parameter (dbg reference), I have to eliminate this from you code and it work. @Debug &operator <<(QDebug dbg, const MyObject &myObj)@ But I can't understand why can't pass QDebug like reference. Thank you Gerolf. BR,
  • Can't execute all query!

    12
    0 Votes
    12 Posts
    5k Views
    A
    yes,thanks all and thanks to Andre for complete detail. ;)
  • Connecting inherited and new Signals & Slots

    3
    0 Votes
    3 Posts
    5k Views
    I
    Can you send the code ?
  • [solved] Is it safe to emit other instance's signal(s) ?

    5
    0 Votes
    5 Posts
    2k Views
    A
    On a side note: to support the template-based signal-slot syntax in Qt5, AFAIK signals will be public there by default.